<?exit?>
<!--{template 'templates/site/default/header.html.php', 1}-->

<!--{ad/horbanner/wrap mbm}-->

<div class="wrap cl">
	<div class="main">
		<div id="pt"> <a title="$_G['setting']['sitename']" class="nvhm" id="fjump" href="./">$_G['setting']['sitename']</a>
		<em>&rsaquo;</em><a href="goodsearch.php">{$location['name']}</a>
		<!--{loop $catnavarray $catnav}-->
		<em>&rsaquo;</em>
		<a href="goodsearch.php?catid={$catnav['catid']}">{$catnav['name']}</a>
		<!--{/loop}-->
		</div>
		<div class="selection mbm">
			<div class="search">
				<div class="y">
					<form id="form_search_goods" method="get" action="goodsearch.php">
						<input class="px" type="text" name="keyword" id="keyword" maxlength=50 value="{$keyword_show}" />
						<input type="hidden" name="catid" value="{$catid}" />
						&nbsp;
						<button type="submit">{$lang['search']}</button>
					</form>
				</div>
				<!--{if $keyword_show}-->{$lang['keywords']} "<strong class="xi1">{$keyword_show}</strong>", <!--{/if}-->{$lang['totalfind']} <strong>{$resultcount}</strong> {$lang['findgood']}
			</div>
			<dl class="cl">
				<dt>{$lang['selectcategory']}</dt>
				<dd class="cl" style="border: none;">
					<ul>
						<!--{loop $samelevelcatarray $levelcat}-->
							<li><a href="goodsearch.php?catid={$levelcat['catid']}&keyword={$keyword_show}" {if $levelcat['catid'] == $catid}class="a"{/if}>{$levelcat['name']} {if {$catnums[$levelcat['catid']]}}({$catnums[$levelcat['catid']]}){/if}</a></li>
						<!--{/loop}-->
					</ul>
				</dd>
			</dl>
			<!--{if $attarray}-->
			<dl class="cl">
				<!--{loop $attarray $attrul}-->
				<dt>{$attrul['attr_name']}</dt>
				<dd class="cl">
					<ul>
						<!--{eval unset($attrul['attr_name']);}-->
						<!--{loop $attrul $attrli}-->
						<li><a href="{$attrli['url']}" {if $attrli['current']}class="a"{/if}>{$attrli['name']}</a></li>
						<!--{/loop}-->
					</ul>
				</dd>
				<!--{/loop}-->
			</dl>
			<!--{/if}-->
		</div>
		<!--{ad/channelbanner/ad_module mbm/1}-->
		<div class="bm mbm">
			<div class="bm_h">
				<ul class="filter cl">
					<li>
						<span class="label">{$lang['viewby']}</span>
						<a href="#" onclick="updateListView('goods', 'view', 'list');" class="mode_l{if $viewby == 'list'} al{/if}">{$lang['viewbylist']}</a>
						<a href="#" onclick="updateListView('goods', 'view', 'pic');" class="mode_p{if $viewby == 'pic'} ap{/if}">{$lang['viewbypic']}</a>
					</li>
					<li class="order y">
						<a href="#" onclick="updateListView('goods', 'sort', 'default');"  style="{if $sortby == 'default'}color:red;{/if}">{$lang['sortbydefault']}</a>
						<span class="pipe">|</span>
						<a href="#" onclick="updateListView('goods', 'sort', 'view');" style="{if $sortby == 'view'}color:red;{/if}">{$lang['sortbyview']}</a>
					</li>
				</ul>
			</div>
			<div class="bm_c cl">
				<!--{if $viewby == 'list'}-->
				<ul class="viewlist cl">
					<!--{loop $goodlist $good}-->
					<li>
						<div class="thumb"><a target="_blank" href="store.php?id={$good['shopid']}&action=good&xid={$good['itemid']}"><img src="{$good['thumb']}" alt="{$good['subject']}"></a></div>
						<div class="info">
							<h3 class="xi2"><a target="_blank" href="store.php?id={$good['shopid']}&action=good&xid={$good['itemid']}" title="{$good['subject']}">{$good['summary']}</a></h3>
							<p class="xg1">{$good['intro']}</p>
							<p class="tu"><a href="store.php?id=$good['shopid']" title="$good['shopinfo']['subject']" target="_blank"><!--{eval echo cutstr($good['shopinfo']['subject'], 20)}--></a></p>
						</div>
						<div class="attribute">
							<span class="s1 xi1">
								<!--{if $good['minprice']}-->
									<strong><!--{if $good['minprice'] == 0 && $good['maxprice'] == 0}-->$lang['selfprice']</strong><!--{else}-->{$good['minprice']}{if $good['maxprice'] > 0} - {$good['maxprice']}{/if} </strong>$lang['yuan']<!--{/if}-->
								<!--{/if}-->
							</span>
							<span class="s2 xg1">#date('Y-m-d', $good['dateline'])#</span>
						</div>
					</li>
					<!--{/loop}-->
				</ul>
				<!--{else}-->
				<ul class="viewlist_enlarge cl">
					<!--{loop $goodlist $good}-->
					<li>
						<div class="thumb"><a target="_blank" href="store.php?id={$good['shopid']}&action=good&xid={$good['itemid']}"><img src="{$good['thumb']}" alt="{$good['subject']}" /></a></div>
						<h3 class="xi2 mtn"><a target="_blank" href="store.php?id={$good['shopid']}&action=good&xid={$good['itemid']}" title="{$good['subject']}">$good['summary']</a></h3>
						<p class="xg1 mtn"><a href="store.php?id=$good['shopid']" title="$good['shopinfo']['subject']" target="_blank"><!--{eval echo cutstr($good['shopinfo']['subject'], 20)}--></a></p>
						<p class="xi1">
						<!--{if $good['minprice']}-->
							{$lang['price']}{$lang['colon']}<strong><!--{if $good['minprice'] == 0 && $good['maxprice'] == 0}-->$lang['selfprice']</strong><!--{else}-->{$good['minprice']}<!--{if $good['maxprice'] > 0}--> - {$good['maxprice']}<!--{/if}--> </strong>$lang['yuan']<!--{/if}-->
						<!--{/if}-->
						</p>
					</li>
					<!--{/loop}-->
				</ul>
				<!--{/if}-->
				<div class="mtm cl">
					$multipage
				</div>
			</div>
		</div>
		<!--{ad/channelbanner/ad_module/2}-->
	</div>
	<div class="side">
		<!--{ad/sidebar/ad_sidebar mbm/1}-->
		<!--{template 'static/blockstyle/sidebar_hotgoods.html.php', 1}-->
		<!--{ad/sidebar/ad_sidebar mbm/2}-->
		<!--{template 'static/blockstyle/sidebar_rdconsume.html.php', 1}-->
		<!--{ad/sidebar/ad_sidebar/3}-->
	</div>
</div>

<!--{template 'templates/site/default/footer.html.php', 1}-->
